﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class hp_plus : Skill
{
    public void Awake()
    {
        once = false;
    }

    // Start is called before the first frame update
    public override void Active(GameObject go)
    {
     
        if (go.tag == "Player")
        {
            go.transform.GetComponent<Player>().hp += 1;
            go.transform.GetComponent<Player>().max_hp += 1; 

        }
        else if (go.tag == "Enemy")
        {
            go.transform.GetComponent<Enemy>().hp += 1;
            go.transform.GetComponent<Enemy>().max_hp += 1;
        }
    }
}
